﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Manage_Service_getCourse : ManagePageBase
{

    protected int cid = 0;
    protected Exam.Core.Model.Course obj = new Exam.Core.Model.Course();

    protected void Page_Load(object sender, EventArgs e) {
        if (Request.QueryString["id"] == null) {
            Response.End();
        }
        if (!int.TryParse(Request.QueryString["id"], out cid)) {
            Response.End();
        }
        else {
            if (!IsPostBack) {
                BindCourse();
            }
        }
    }

    private void BindCourse() {
        obj = new Exam.Core.DAL.Course().getCourseById(cid);
        //foreach (Knowledge know in obj.Knowledges) {
        //    know.Title.Trim();
        //    know.Id.Trim();
        //}

    }



}
